//
//  CustomTextField.m
//  CCJD
//
//  Created by foreveross－bj on 14/12/19.
//  Copyright (c) 2014年 foreveross－bj. All rights reserved.
//

#import "CustomTextField.h"

@implementation CustomTextField
- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
            self.tintColor = [UIColor whiteColor];
        }
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (void)drawPlaceholderInRect:(CGRect)rect{
    [[UIColor whiteColor] setFill];
    [self.placeholder drawInRect:CGRectMake(rect.origin.x, rect.origin.y + 5, rect.size.width, rect.size.height) withFont:[UIFont systemFontOfSize:15]];
}

@end
